﻿using Newtonsoft.Json;

namespace Spark.WeiXinSdk.App
{
    public class AppToken
    {
        [JsonProperty(PropertyName = "access_token")]
        public string AccessToken { get; set; }

        [JsonProperty(PropertyName = "refresh_token")]
        public string RefreshToken { get; set; }

        [JsonProperty(PropertyName = "openid")]
        public string OpenId { get; set; }

        [JsonProperty(PropertyName = "scope")]
        public string Scope { get; set; }

        [JsonProperty(PropertyName = "expires_in")]
        public int ExpiresIn { get; set; }

        [JsonProperty(PropertyName = "unionid")]
        public string UnionId { get; set; }

        [JsonProperty(PropertyName = "errcode")]
        public string ErrCode { get; set; }

        [JsonProperty(PropertyName = "errmsg")]
        public string ErrMsg { get; set; }
    }
}